def index():
    return "index"
def center():
    return "center"
def error():
    return "404 error"

# 接口 解耦合
def application(req_path):
    if req_path == "/index.html":
        return index()
    elif req_path == "/center.html":
        return center()
    else:
        return error()